package JavaSE.d1;
import java.util.Scanner;
/*
输入三个数，找出最大一个数，并打印出来
 */
public class Test18 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入三个数来比较大小");
        System.out.println(getMax(getMax(scanner.nextDouble(),scanner.nextDouble()),scanner.nextDouble()));
    }
     static double getMax(double x, double y){
        if (x>y){
            return x;
        }else {
            return y;
        }
    }
}
